package com.kelw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kelw.entity.Notice;
import com.kelw.vo.PageResponse;

/**
 * @program: exam-admin
 * @description:
 * @author: KE LiWei
 * @create: 2023-03-21 14:08
 **/
public interface NoticeService extends IService<Notice> {
    // 将所有公告设置为历史公告
    boolean setAllNoticeIsHistoryNotice();

    String getCurrentNotice();

    PageResponse<Notice> getAllNotices(String content, Integer pageNo, Integer pageSize);

    void publishNotice(Notice notice);

    void deleteNoticeByIds(String noticeIds);

    void updateNotice(Notice notice);
}
